CHAPTER 4 Invoking Remote Methods We need to register a function as a token getter for Github-Flask extension. It will be called automatically by the extension to get the access token of the user. It should return the access token or None: @github.access